#ifndef QCUSTOMWIDGET_H
#define QCUSTOMWIDGET_H

#include <QtCore/qglobal.h>

#ifdef COMMONCTRL_LIB
# define COMMONCTRL_EXPORT Q_DECL_EXPORT
#else
# define COMMONCTRL_EXPORT Q_DECL_IMPORT
#endif


#include <QWidget>

class QCustomWidgetPrivate;
class COMMONCTRL_EXPORT QCustomWidget : public QWidget
{
	Q_OBJECT

public:
	QCustomWidget(QWidget *parent);
	~QCustomWidget();
	 
	virtual		void	closeWidget();
	virtual		void	changeEvent(QEvent* e);
	void				setTranslateUI(QWidget* pWidget);

	void		setFramelessHint(bool bFlag);
	void		setWindowTitle(const QString&);
	void		setCoustomResizeable(bool bFlag);
	int			exec();
	void		done(int nExitCode);
private:
	QCustomWidgetPrivate* d;

private slots:
	void		onAppMinSlot();
	void		onAppMaxSlot();
	void		onAppCloseSlot();
};

#endif // QCUSTOMWIDGET_H
